// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

/*
/ 全局静态变量定义
切勿随意修改数组次序，很多地方已下标方式使用
 */

export const page = {
  limit: [20, 40, 60, 80, 100],
  page: 1,
  layout: 'total, sizes, prev, pager, next, jumper'
}

/**
 * 无限极分类type
 * @type {{product: number, attachment: number, menu: number, article: number, operator: number}}
 */
export const categoryType = [ // 1 公用配置
  { name: '公用数据配置', value: 1, shortName: '公用' },
]
/*export const categoryType = [ // 1 产品分类，2 附件分类，3 文章分类， 4 设置分类， 5 菜单分类， 6 配置分类， 7 秒杀配置
  { name: '产品分类', value: 1, shortName: '产品' },
  { name: '附件分类', value: 2, shortName: '附件' },
  { name: '文章分类', value: 3, shortName: '文章' },
  { name: '设置分类', value: 4, shortName: '设置' },
  { name: '菜单分类', value: 5, shortName: '菜单' },
  { name: '配置分类', value: 6, shortName: '配置' },
  { name: '秒杀配置', value: 7, shortName: '秒杀' }
]*/

//公共返回数据
export const staticRoleList = {
    "count": 5,
    "list": [
      {
        "id": 1,
        "roleName": "超级管理员",
        "level": 1,
        "status": 1,
        "createTime": "2023-02-26T14:36:14.000+00:00",
        "updateTime": "2023-03-16T07:54:48.000+00:00",
        "createTimeText": "2023-02-26 22:36:14",
        "updateTimeText": "2023-03-16 15:54:48",
        "levelText": "超级管理员"
      },
      {
        "id": 2,
        "roleName": "业务单位",
        "level": 2,
        "status": 1,
        "createTime": "2023-02-26T14:36:16.000+00:00",
        "updateTime": "2023-03-16T07:54:55.000+00:00",
        "createTimeText": "2023-02-26 22:36:16",
        "updateTimeText": "2023-03-16 15:54:55",
        "levelText": "业务单位"
      },
    ]
}
export const staticDepartmentList = [
  {id:1,name:"住建局",shortName:"住建局",sort:1},
  {id:2,name:"公益广告相关单位",shortName:"公益广告相关单位",sort:0},
  {id:3,name:"政务大厅",shortName:"政务大厅",sort:0},
  {id:4,name:"城管执法局",shortName:"城管执法局",sort:0},
  {id:5,name:"新市区街道办",shortName:"新市区街道办",sort:0},
  {id:6,name:"人民医院",shortName:"人民医院",sort:0},
  {id:7,name:"交通局",shortName:"交通局",sort:0},
  {id:8,name:"商务局",shortName:"商务局",sort:0},
  {id:9,name:"市场监管局",shortName:"市场监管局",sort:0},
  {id:10,name:"公安局",shortName:"公安局",sort:0},
  {id:11,name:"铁人路社区",shortName:"铁人路社区",sort:0},
]
export const staticTypeList = [
  {id:1,name:"（一）基础设施不完善"},
  {id:2,name:"（二）公共秩序不文明行为"},
  {id:3,name:"（三）公共环境卫生不文明行为"},
  {id:4,name:"（四）交通不文明行为"},
  {id:5,name:"（五）居民小区不文明行为"},
]

export const roleListStatus = [
  { label: '全部', value: '' },
  { label: '显示', value: 1 },
  { label: '不显示', value: 0 }
]

export const showHiddenStatus = [
  { label: '显示', value: '‘1’' },
  { label: '不显示', value: '‘0’' }
]

export const switchStatus = [
  { label: '开启', value: 1 },
  { label: '关闭', value: 0 }
]

export const deletedOrNormal = [
  { label: '正常', value: 0 },
  { label: '已删除', value: 1 }
]

/**
 * 暂时弃用
 * @type {*[]}
 */
export const configCategory = [
  { label: '系统', value: '0' },
  { label: '应用', value: '1' },
  { label: '支付', value: '2' },
  { label: '其他', value: '3' }
]

/**
 * 表单配置集合集中配置
 * @type {{id: number, dis: string}[]}
 */
export const formConfigIds = [
  { id: 84, dis: '微信公众号表单配置' },
  { id: 86, dis: '秒杀配置' }
]

/**
 * 时间选择器
 */
export const fromList = {
  title: '选择时间',
  custom: true,
  fromTxt: [
    { text: '全部', val: '' },
    { text: '今天', val: 'today' },
    { text: '昨天', val: 'yesterday' },
    { text: '最近7天', val: 'lately7' },
    { text: '最近30天', val: 'lately30' },
    { text: '本月', val: 'month' },
    { text: '本年', val: 'year' }
  ]
}

// 统计管理时间选择器
export const timeList = {
  title: '选择时间',
  custom: true,
  fromTxt: [
    { text: '昨天', val: `` },
    { text: '最近7天', val: 'lately7' },
    { text: '最近30天', val: 'lately30' },
  ]
}
